package com.yuandian.management.vo;

import com.yuandian.api.management.validate.InsertFlag;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 区域编码管理信息
 *
 * @author zhoutian
 * @date 2021/1/29 10:33
 */
@Data
public class RegionMappingInfo {
    /**
     * id
     */
    private int id;
    /**
     * 区域编码
     */
    @NotNull(message = "code区域编码不能为空", groups = InsertFlag.class)
    private String code;
    /**
     * 区域id
     */
	@NotNull(message = "区域id areaId 不能为空", groups = InsertFlag.class)
    private Integer areaId;
    /**
     * 父级区域ID
     */
	@NotNull(message = "父级区域ID parentId 不能为空", groups = InsertFlag.class)
    private Integer parentId;
}
